package ws

import (
	"github.com/gin-gonic/gin"
	"user/consts"
	"user/pkg"
	"user/ws/hander"
)

func LoadRouter(r *gin.Engine) {
	ws := r.Group("./ws")
	{
		ws.Use(pkg.JWTAuth(consts.JWT_KEY))
		ws.GET("./chat", hander.Chat)
	}
}
